package com.eeds.common.enums;

import com.eeds.common.enums.base.BaseEnum;

public enum  StageType implements BaseEnum {


    STAGE_ONE(20,"第一阶段"),

    STAGE_TWO(30,"第二阶段"),

    STAGE_THREE(40,"第三阶段"),
    ;

    private final Integer value;

    private final String description;

    StageType(Integer value, String description){
        this.value = value;
        this.description = description;
    }

    public static StageType valueOf(Integer value) {
        for (StageType item : values()) {
            if (item.getValue().equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public DeviceType get(Integer value) {
        return DeviceType.valueOf(value);
    }


    @Override
    public String toString() {
        return String.valueOf(this.value);
    }
}
